/**
 * <copyright>
 * </copyright>
 *
 * $Id$
 */
package org.hl7.v3;

import java.util.Arrays;
import java.util.Collections;
import java.util.List;

import org.eclipse.emf.common.util.Enumerator;

/**
 * <!-- begin-user-doc -->
 * A representation of the literals of the enumeration '<em><b>Cream Drug Form Member1</b></em>',
 * and utility methods for working with them.
 * <!-- end-user-doc -->
 * @see org.hl7.v3.V3Package#getCreamDrugFormMember1()
 * @model extendedMetaData="name='CreamDrugForm_._member_._1'"
 * @generated
 */
public enum CreamDrugFormMember1 implements Enumerator {
	/**
	 * The '<em><b>CRM</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #CRM_VALUE
	 * @generated
	 * @ordered
	 */
	CRM(0, "CRM", "CRM"),

	/**
	 * The '<em><b>NASCRM</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #NASCRM_VALUE
	 * @generated
	 * @ordered
	 */
	NASCRM(1, "NASCRM", "NASCRM"),

	/**
	 * The '<em><b>OPCRM</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #OPCRM_VALUE
	 * @generated
	 * @ordered
	 */
	OPCRM(2, "OPCRM", "OPCRM"),

	/**
	 * The '<em><b>ORCRM</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #ORCRM_VALUE
	 * @generated
	 * @ordered
	 */
	ORCRM(3, "ORCRM", "ORCRM"),

	/**
	 * The '<em><b>OTCRM</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #OTCRM_VALUE
	 * @generated
	 * @ordered
	 */
	OTCRM(4, "OTCRM", "OTCRM"),

	/**
	 * The '<em><b>RECCRM</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #RECCRM_VALUE
	 * @generated
	 * @ordered
	 */
	RECCRM(5, "RECCRM", "RECCRM"),

	/**
	 * The '<em><b>TOPCRM</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #TOPCRM_VALUE
	 * @generated
	 * @ordered
	 */
	TOPCRM(6, "TOPCRM", "TOPCRM");

	/**
	 * The '<em><b>CRM</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>CRM</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #CRM
	 * @model
	 * @generated
	 * @ordered
	 */
	public static final int CRM_VALUE = 0;

	/**
	 * The '<em><b>NASCRM</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>NASCRM</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #NASCRM
	 * @model
	 * @generated
	 * @ordered
	 */
	public static final int NASCRM_VALUE = 1;

	/**
	 * The '<em><b>OPCRM</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>OPCRM</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #OPCRM
	 * @model
	 * @generated
	 * @ordered
	 */
	public static final int OPCRM_VALUE = 2;

	/**
	 * The '<em><b>ORCRM</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>ORCRM</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #ORCRM
	 * @model
	 * @generated
	 * @ordered
	 */
	public static final int ORCRM_VALUE = 3;

	/**
	 * The '<em><b>OTCRM</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>OTCRM</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #OTCRM
	 * @model
	 * @generated
	 * @ordered
	 */
	public static final int OTCRM_VALUE = 4;

	/**
	 * The '<em><b>RECCRM</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>RECCRM</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #RECCRM
	 * @model
	 * @generated
	 * @ordered
	 */
	public static final int RECCRM_VALUE = 5;

	/**
	 * The '<em><b>TOPCRM</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>TOPCRM</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #TOPCRM
	 * @model
	 * @generated
	 * @ordered
	 */
	public static final int TOPCRM_VALUE = 6;

	/**
	 * An array of all the '<em><b>Cream Drug Form Member1</b></em>' enumerators.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private static final CreamDrugFormMember1[] VALUES_ARRAY =
		new CreamDrugFormMember1[] {
			CRM,
			NASCRM,
			OPCRM,
			ORCRM,
			OTCRM,
			RECCRM,
			TOPCRM,
		};

	/**
	 * A public read-only list of all the '<em><b>Cream Drug Form Member1</b></em>' enumerators.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static final List<CreamDrugFormMember1> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));

	/**
	 * Returns the '<em><b>Cream Drug Form Member1</b></em>' literal with the specified literal value.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static CreamDrugFormMember1 get(String literal) {
		for (int i = 0; i < VALUES_ARRAY.length; ++i) {
			CreamDrugFormMember1 result = VALUES_ARRAY[i];
			if (result.toString().equals(literal)) {
				return result;
			}
		}
		return null;
	}

	/**
	 * Returns the '<em><b>Cream Drug Form Member1</b></em>' literal with the specified name.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static CreamDrugFormMember1 getByName(String name) {
		for (int i = 0; i < VALUES_ARRAY.length; ++i) {
			CreamDrugFormMember1 result = VALUES_ARRAY[i];
			if (result.getName().equals(name)) {
				return result;
			}
		}
		return null;
	}

	/**
	 * Returns the '<em><b>Cream Drug Form Member1</b></em>' literal with the specified integer value.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static CreamDrugFormMember1 get(int value) {
		switch (value) {
			case CRM_VALUE: return CRM;
			case NASCRM_VALUE: return NASCRM;
			case OPCRM_VALUE: return OPCRM;
			case ORCRM_VALUE: return ORCRM;
			case OTCRM_VALUE: return OTCRM;
			case RECCRM_VALUE: return RECCRM;
			case TOPCRM_VALUE: return TOPCRM;
		}
		return null;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final int value;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final String name;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final String literal;

	/**
	 * Only this class can construct instances.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private CreamDrugFormMember1(int value, String name, String literal) {
		this.value = value;
		this.name = name;
		this.literal = literal;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public int getValue() {
	  return value;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public String getName() {
	  return name;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public String getLiteral() {
	  return literal;
	}

	/**
	 * Returns the literal value of the enumerator, which is its string representation.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public String toString() {
		return literal;
	}
	
} //CreamDrugFormMember1
